package com.sandias;

import com.sandias.Girl.Girl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * designed by Steve Ke on 2017/5/6.
 *
 * @author Steve Ke
 *         e-mail  huangke7296@foxmail.com
 *         github  https://github.com/KoreHuang
 *         oschina https://git.oschina.net/steveKe
 * @version JDK 1.8.0_111
 * @since 2017/5/6
 */

@RestController

public class HelloController {


    @Autowired
    private Girl girl;

    @RequestMapping(value={"/hello","/hi"},method = RequestMethod.GET)
    public String say(){
        return "\n"+girl.getCupSize();
    }


}
